{{define "title"}}Machine DB - Virtal Machines{{end}}

{{define "content"}}

<h1>Virtual Machines</h1>
  <table class="mdl-data-table mdl-js-data-table">
    <thead>
      <tr>
        <th class="mdl-data-table__cell--non-numeric">Name</th>
        <th class="mdl-data-table__cell--non-numeric">VLAN</th>
        <th class="mdl-data-table__cell--non-numeric">IP Address</th>
        <th class="mdl-data-table__cell--non-numeric">Host</th>
        <th class="mdl-data-table__cell--non-numeric">Host VLAN</th>
        <th class="mdl-data-table__cell--non-numeric">Operating System</th>
        <th class="mdl-data-table__cell--non-numeric">Description</th>
        <th class="mdl-data-table__cell--non-numeric">Deployment Ticket</th>
        <th class="mdl-data-table__cell--non-numeric">State</th>
      </tr>
    </thead>
    <tbody>
     {{range .Vms}}
      <tr>
        <td class="mdl-data-table__cell--non-numeric">{{.Name}}</td>
        <td class="mdl-data-table__cell--non-numeric">{{.Vlan}}</td>
        <td class="mdl-data-table__cell--non-numeric">{{.Ipv4}}</td>
        <td class="mdl-data-table__cell--non-numeric">{{.Host}}</td>
        <td class="mdl-data-table__cell--non-numeric">{{.HostVlan}}</td>
        <td class="mdl-data-table__cell--non-numeric">{{.Os}}</td>
        <td class="mdl-data-table__cell--non-numeric">{{.Description}}</td>
        <td class="mdl-data-table__cell--non-numeric">{{.DeploymentTicket}}</td>
        <td class="mdl-data-table__cell--non-numeric">{{.State}}</td>
      </tr>
      {{end}}
    </tbody>
  </table>

{{end}}
